
<div class="content">
    <div class="tabb">
	<a href="<?php echo SITE_NAME_URL ?>">Home</a>
	<a href="<?php echo url('product') ?>">Products</a>
	<a href="<?php echo url('product/list_product/') ?>"> <?php echo $aCat[$idArr]['name']; ?> </a>
	<span><?php echo $model->name; ?></span>
    </div>

    <div class="text-main">
	<div class="left-main">
	    <div class="box-left">
		<ul class="left-menu ">
		    <?php foreach ($aCat as $cat) { ?>
    		    <li><a href="<?php echo url('product/list_product/' . $cat['category_id']) ?>"><?php echo $cat['name'] ?></a></li>
		    <?php } ?>
		</ul>
	    </div>
	</div><!--left-main-->
	<div class="right-main">

	    <div class="detail">
		<div class="left-detail">
		    <div class="img-detail">
			<img src="<?php echo $model->getImg('large') ?>">
		    </div>

		</div><!--left-detail-->
		<div class="right-detail">
		    <h3><?php echo $model->name ?></h3>
		    <div class="detail-but">
			<form action='' method='post'>
			    <input class="quality total_order" value="1" type="text" name='total_order'/><input class='add-card-btn' type="submit" name='submit' value=''/>
			    <span class="price"><?php echo $model->getPrice(); ?></span>
			</form>

		    </div>

		    <div class="descrip">
			<h4>Product Description</h4>

			<?php echo nl2br(h($model->description)) ?>
		    </div>

		</div><!--right-detail-->
	    </div>

	    <div class="title-pro">
		Related Products
	    </div>

	    <ul class="pro box-perso">
		<?php foreach ($relateProduct as $item) { ?>
    		<li>
    		    <a href="<?php echo url('product/detail/id/' . $item->product_id) ?>"><img src="<?php echo $item->getImg('thumb') ?>"></a>
    		    <a href="<?php echo url('product/detail/id/' . $item->product_id) ?>"><?php echo $item->name ?></a>
    		    <p><?php echo $item->getPrice(); ?></p>
    		</li>	    	
		<?php } ?>
	    </ul>

	</div><!--right-main-->

    </div><!--box-left-->


</div><!--content-->